package cn.javase.base.multithread._01_实现线程;

public class ThreadTest {
    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName());
        MyThread myThread = new MyThread();
        myThread.start();
        System.out.println(myThread.getName());
        Thread myRunnable = new Thread(new MyRunnable());
        myRunnable.start();
        System.out.println(myRunnable.getName());
    }
}
